package com.test.example.controller.excel.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("teacher")  // 用于指定在 Excel 中的目标名称，确保嵌套对象能正确地被处理。
public class Teacher {

    @Excel(name = "老师Id", orderNum = "2", needMerge=true)
    private String id;

    @Excel(name = "主讲老师_major,代课老师_absent", orderNum = "3", isImportField = "true_major,true_absent", needMerge=true)
    private String name;
}
